# $Id: Makefile,v 1.6 2003/01/29 10:36:37 sdw Exp $

CFLAGS = -c 
CPPFLAGS = -c -g -ggdb -Dlinux -fimplicit-templates -I/usr/share/xerces-c-src2_1_0/src -I../../ -D_REENTRANT 
#-instances=static
CPP = g++ -fpic 
CC = gcc
LINKFLAGS = -lm -L/usr/lib -L/usr/local/lib -lc
.SUFFIXES: .cpp

.cpp.o:	
	${CPP} ${CPPFLAGS}  $<

.c.o:	
	${CPP} ${CPPFLAGS}  $<

XERCES_LIBS = ../../Simkin_Xerces.a /usr/share/xerces-c-src2_1_0/lib/libxerces-c2_1.so /usr/lib/libpthread.so

Scriptloader_Xerces:  $(XERCES_LIBS)
	${CPP} ${CPPFLAGS} ScriptLoader_Xerces.cpp -D USE_XERCES 
	${CPP} ScriptLoader_Xerces.o $(XERCES_LIBS) ${LINKFLAGS} -o ScriptLoader_Xerces

EXPAT_LIBS = ../../Simkin_Expat.a /usr/lib/libexpat.a

Scriptloader_Expat: $(EXPAT_LIBS)
	${CPP} ${CPPFLAGS} ScriptLoader_Expat.cpp -D USE_EXPAT 
	${CPP} ScriptLoader_Expat.o $(EXPAT_LIBS) ${LINKFLAGS} -o ScriptLoader_Expat

TREENODE_LIBS = ../../Simkin_TreeNode.a

Scriptloader_TreeNode: $(TREENODE_LIBS)
	${CPP} ${CPPFLAGS} ScriptLoader_TreeNode.cpp -D USE_TREENODE 
	${CPP} ScriptLoader_TreeNode.o $(TREENODE_LIBS) ${LINKFLAGS} -o ScriptLoader_TreeNode

clean:
	rm *.o *.a

depend:
	makedepend -I/usr/share/xerces-c-src1_4_0/src -I../../ *.cpp

# DO NOT DELETE


ScriptLoader.c.o: ../../skBoundsException.h ../../skExecutable.h
ScriptLoader.c.o: ../../skGeneral.h ../../skInterpreter.h ../../skNull.h
ScriptLoader.c.o: ../../skParseException.h ../../skRuntimeException.h
ScriptLoader.c.o: ../../skRValueArray.h ../../skRValue.h ../../skString.h
ScriptLoader.c.o: ../../skString.inl ../../skValist.h
ScriptLoader.c.o: ../../skXMLElementObject.h ../../skXMLExecutable.h
ScriptLoader.c.o: /usr/include/alloca.h /usr/include/assert.h
ScriptLoader.c.o: /usr/include/bits/pthreadtypes.h /usr/include/bits/sched.h
ScriptLoader.c.o: /usr/include/bits/sigset.h /usr/include/bits/types.h
ScriptLoader.c.o: /usr/include/bits/waitstatus.h /usr/include/endian.h
ScriptLoader.c.o: /usr/include/features.h /usr/include/g++-3/iostream.h
ScriptLoader.c.o: /usr/include/g++-3/streambuf.h /usr/include/_G_config.h
ScriptLoader.c.o: /usr/include/gconv.h /usr/include/libio.h
ScriptLoader.c.o: /usr/include/stdlib.h /usr/include/string.h
ScriptLoader.c.o: /usr/include/sys/select.h /usr/include/sys/types.h
ScriptLoader.c.o: /usr/include/time.h /usr/include/wchar.h
ScriptLoader.c.o: /usr/include/xlocale.h
ScriptLoader.c.o: /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h
ScriptLoader.c.o: /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stddef.h
ScriptLoader.c.o: /usr/share/xerces-c-src1_4_0/src/dom/DOM_Element.hpp
ScriptLoader.c.o: /usr/share/xerces-c-src1_4_0/src/dom/DOM_Node.hpp
ScriptLoader.c.o: /usr/share/xerces-c-src1_4_0/src/dom/DOMString.hpp
ScriptLoader.c.o: /usr/share/xerces-c-src1_4_0/src/sax/InputSource.hpp
ScriptLoader.c.o: /usr/share/xerces-c-src1_4_0/src/util/Compilers/GCCDefs.hpp
ScriptLoader.c.o: /usr/share/xerces-c-src1_4_0/src/util/Platforms/Linux/LinuxDefs.hpp
ScriptLoader.c.o: /usr/share/xerces-c-src1_4_0/src/util/PlatformUtils.hpp
ScriptLoader.c.o: /usr/share/xerces-c-src1_4_0/src/util/XercesDefs.hpp
ScriptLoader.c.o: /usr/share/xerces-c-src1_4_0/src/util/XMLException.hpp
ScriptLoader.c.o: /usr/share/xerces-c-src1_4_0/src/util/XMLExceptMsgs.hpp
ScriptLoader.c.o: /usr/share/xerces-c-src1_4_0/src/util/XMLUni.hpp
